<script setup lang="ts">
import { reactive } from 'vue';
// 头部表单数据
const form = reactive({
    name: '',
    collegeId: '',
    classId: '',
    date2: '',
    stuNum: '',
    phoneNumber:'',
});

const onSearch = () => {
    console.log('搜索!');
}
const onReset = () => {
    console.log('重置!');
}
</script>

<template>
<div class="app-container">
    <el-form :model="form" label-width="auto" :inline="true">
        <!-- 姓名 -->
        <el-form-item label="姓名">
            <el-input v-model="form.name" placeholder="请输入姓名" />
        </el-form-item>
        <!-- 学院 -->
        <el-form-item label="学院">
            <el-select v-model="form.collegeId" placeholder="请选择学院">
                <el-option label="Zone one" value="shanghai" />
            </el-select>
        </el-form-item>
        <!-- 年级 -->
        <el-form-item label="年级">
            <el-select v-model="form.classId" placeholder="请选择年级">
                <el-option label="Zone one" value="shanghai" />
            </el-select>
        </el-form-item>
        <!-- 学号-->
        <el-form-item label="学号">
            <el-input v-model="form.stuNum" placeholder="请输入学号" />
        </el-form-item>
        <!-- 手机号 -->
        <el-form-item label="手机号">
            <el-input v-model="form.phoneNumber" placeholder="请输入手机号" />
        </el-form-item>
        <!--  按钮  -->
        <el-form-item>
            <el-button @click="onReset">重置</el-button>
            <el-button type="primary" @click="onSearch">搜索</el-button>
        </el-form-item>
    </el-form>

</div>
</template>
<style scoped lang="scss"></style>


